﻿using Ceremony.API.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Ceremony.API.ViewModel
{
    public class PrizeBaseModel
    {
        public int PrizeId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 奖项名称
        /// </summary>
        public string PrizeName { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public string Tag { get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string ImageName { get; set; }
        /// <summary>
        /// 图片Url
        /// </summary>
        public string ImageUrl { get; set; }
    }

    public class PrizeStarttingModel : PrizeBaseModel
    {
        public DateTime StartTime { get; set; }
    }
    public class PrizeViewModel : PrizeBaseModel
    {
        public string PrizeTitle { get; set; }
        /// <summary>
        /// 是否开始0:未开始 1：开始 2：当场已结束 3:用户未授权
        /// </summary>
        public int ResponseCode { get; set; }
        /// <summary>
        /// 场次(1,2,3)
        /// </summary>
        public int Scene { get; set; }
    }

    public class PrizeIndexModel
    {
        public int PrizeId { get; set; }

        public int Num { get; set; }

        public PrizeIndexModel(int prizeId,int num)
        {
            this.PrizeId = prizeId;
            this.Num = num;
        }
    }
    /// <summary>
    /// 查询的奖项
    /// </summary>
    public class PrizesViewModel
    {
        public int PrizeId { get; set; }
        /// <summary>
        /// 奖项名称
        /// </summary>
        public string PrizeName { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public string Tag { get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string ImageName { get; set; }
        /// <summary>
        /// 层级（几等奖）
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 场次(1,2,3)
        /// </summary>
        public int Scene { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Num { get; set; }
        public string ImageUrl { get; set; }
    }
    /// <summary>
    /// 发布的用户中将记录
    /// </summary>
    public class PublishUserPrizeRecord : PrizeBaseModel
    {
       
    }

    public class PrizeStateModel
    { 
        /// <summary>
        /// 场次
        /// </summary>
        public int Scene { get; set; }
        /// <summary>
        /// 状态1：开始 2：已结束 
        /// </summary>
        public int State { get; set; }
    }
    /// <summary>
    /// 返回倒计时实体
    /// </summary>
    public class CutDownModel
    {
        /// <summary>
        /// 倒计时时间
        /// </summary>
        public int CutDown { get; set; }
        /// <summary>
        /// 通知消息
        /// </summary>
        public string NoticeMessage { get; set; }
    }

    public class PrizeStartModel
    {
        /// <summary>
        /// 0：活动时间未设置，1：奖项未设置，2：设置成功
        /// </summary>
        public int ResponseCode { get; set; }
        /// <summary>
        /// 场次
        /// </summary>
        public int Scene { get; set; }
    }

    public class ReturnPrizeSetting : PrizeSetting
    { 
        public string StartTimeFormat { get; set; }
    }
    public class SummaryPrizesViewModel
    {
        public int TotalCount { get; set; }

        public IEnumerable<PrizesViewModel> Prizes { get; set; }
    }

}
